home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17923 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.5 KB

  1. Path: wholder2.cts.com!user
  2. From: dbell@shvn.com (Doug Bell)
  3. Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
  4. Subject: Re: Will Java kill C++?
  5. Date: Wed, 17 Apr 1996 22:19:59 -0700
  6. Organization: FTL Games
  7. Message-ID: <dbell-1704962219590001@wholder2.cts.com>
  8. References: <3134D499.653E@ix.netcom.com> <313613B2.136E@ksopk.sprint.com> <4i7qhl$ik6@cronkite.seas.gwu.edu> <4iuhi7$fmf@sundog.tiac.net> <4iumap$mn5@hustle.rahul.net> <31582A45.3742@vmark.com> <3163C031.4FB1@esec.ch> <3164888D.2B01@concentric.net> <4kbfn8$1bu@news1.is.net> <316971B0.FEF@amd.com> <Jan-1104960033370001@news.magmacom.com> <31711755.328F@charm.net> <Jan-1504962032120001@news.magmacom.com> <4l3vf0$57k@gidora.kralizec.net.au>
  9. NNTP-Posting-Host: wholder2.cts.com
  10.  
  11. Colin Johnson <colin@pangaea.com.au> wrote:
  12.  
  13. > Jan@Bytesmiths.com (Jan Steinman) wrote:
  14. > >In article <31711755.328F@charm.net>, Bob Arning <arning@charm.net> wrote:
  15. > >
  16. > >> Jan Steinman wrote:
  17. > >...
  18. > >> > Ready, set, go (standard disclaimer, typed in off the top of my head):
  19. > >> > 
  20. > >> > | pi n |
  21. > >> > pi := 0.
  22. > >> > n := "number of hex digits of precision desired"
  23. > >> > 1 to: n do: [:i | pi := pi +
  24. > >> >   ((1 / (16 raisedTo: i) *
  25. > >> >     ((4 / ((8 * i) + 1)) +
  26. > >> >     (2 / ((8 * i) + 4)) +
  27. > >> >     (1 / ((8 * i) + 5)) +
  28. > >> >     (1 / ((8 * i) + 6))))].
  29. > >> > pi
  30. > >> > 
  31. > >> > Okay, has your C compiler finished yet? :-)
  32. > >...
  33. > >> Your standard disclaimer notwithstanding, it would be a more impressive 
  34. > >> example if it actually worked. Where does the missing right paren go?
  35. > >
  36. > >Oops! I separated it into one factor and four terms, but I guess I wasn't
  37. > >counting right. Without the Smalltalk paren-matcher, I'd have to guess it
  38. > >goes before the square bracket. Sorry!
  39. > >
  40. > > : Jan Steinman <mailto:Jan@Bytesmiths.com>
  41. > > : Bytesmiths, the Smalltalk specialists <http://www.bytesmiths.com>
  42. > > : "This is witty signature 1 of 47,288."
  43. > Of course, guys, the wonderful thing about Smalltalk is that if Jan's code 
  44. > had been typed into a workspace and executed, the error (a simple typo) 
  45. > would have been detected immediately. What about the poor C++ coder? Fix 
  46. > it, then compile -again-! :-)
  47. > Regards,
  48. > Col
  49.  
  50. With an IDE, there's not that much difference anymore.  You're compiling
  51. from the editor vs. executing from the editor.  And a smart editor would
  52. have made the mismatch obvious as it was typed.  What about the poor
  53. Smalltalk programmer?  Fix it, then execute -again-!  :-)
  54.  
  55. Doug Bell
  56. dbell@shvn.com
  57.